package b1.scenes.home.picpane
{
	import b1.net.*;
	import b1.players.*;
	
	import flash.display.*;
	import flash.events.MouseEvent;

	public class PlayerPicPane extends Sprite
	{
		public var playerInfo:PlayerInfo;
		
		public function PlayerPicPane(playerInfo:PlayerInfo)
		{
			super();
			this.playerInfo = playerInfo;
			//用户头像
			var playerPicIcon:PlayerPicIcon = new PlayerPicIcon(playerInfo);
			addChild(playerPicIcon);
			//所拥有的动物头像
			for (var i:int = 0; i < playerInfo.ownAnimals.length; i++)
			{
				var animalIcon:AnimalIcon = new AnimalIcon(playerInfo.ownAnimals[i]);
				animalIcon.x = 66 + i * 30;
				animalIcon.y = 50;
				addChild(animalIcon);
			}
		}
	}
}